#!/bin/sh
set -ex

# chmod +x ./build.sh && ./build.sh

# 构建镜像
echo -e 'start build images...\n'
docker build -t xiaobu191/php-echo -f ./Dockerfile .


# 推送到仓库
echo -e '\nstart push images\n'
docker push xiaobu191/php-echo

echo -e '\nbuild done.\n'

exit 0